import Mock from "mockjs";
// 定义Mock请求拦截
import user from "./mockData/user.js";



Mock.mock('/api/home/gatData',
function(){
    console.log('拦截到了');
    return []
}
)

// 用户数据
// 创建
Mock.mock('/api/user/add','post',user.createUser)
// 更新用户
Mock.mock('/api/user/edit','post',user.updateUser)
// 删除
Mock.mock('/api/user/del','post',user.deleteUser)
// 获取数据
Mock.mock('/api/user/getuser',user.getUserList)


